<?php get_main_menu("admin");
mysql_select_db($database_drycleaners_conn, $drycleaners_conn);
$query_theme = "SELECT value FROM options_settings where name='table_theme'";
$theme = mysql_query($query_theme, $drycleaners_conn) or die(mysql_error());
$row_theme = mysql_fetch_assoc($theme);
$totalRows_theme = mysql_num_rows($theme);
 ?>
   <br/>
   <div style="width:90%; margin-left:auto; margin-right:auto;">
    <div class="form_title">
            <?php echo $_REQUEST["action"];?> Theme <?php echo $row_get_role_by_id['name']?>
    </div>
    <div class="box">
<?php
 if(isset($_REQUEST["update"])){
			if(isset($_REQUEST["id"])){
			mysql_select_db($database_drycleaners_conn, $drycleaners_conn);
			$query_update_user="update options_settings set value='".$_REQUEST['table_theme']."' WHERE options_settings.name='table_theme'";
			$results_user=mysql_query($query_update_user,$drycleaners_conn) or die(mysql_error());
				redirect_drycleaners("theme_view","2");
			}
 			}
?>
<form action="<?php echo $editFormAction; ?>" method="post" name="Theme" id="theme_form">
  <table align="left">
    <tr valign="baseline">
      <td nowrap="nowrap" align="left">Theme</td>
      <td><select name="table_theme">
        <option value="base" <?php if (!(strcmp("base", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Grey</option>
        <option value="black-tie" <?php if (!(strcmp("black-tie", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Black Tie</option>
        <option value="blitzer" <?php if (!(strcmp("blitzer", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Red Theme</option>
        <option value="cupertino" <?php if (!(strcmp("cupertino", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Light Blue</option>
        <option value="dark-hive" <?php if (!(strcmp("dark-hive", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Dark Hive Black</option>
        <option value="dot-luv" <?php if (!(strcmp("dot-luv", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Dot Luv</option>
        <option value="eggplant" <?php if (!(strcmp("eggplant", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Eggplant</option>
        <option value="excite-bike" <?php if (!(strcmp("excite-bike", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>White Excite bike</option>
        <option value="flick" <?php if (!(strcmp("flick", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>flick</option>
        <option value="hot-sneaks" <?php if (!(strcmp("hot-sneaks", $row_theme['value']))) {echo "selected=\"selected\"";} ?>> Dark Blue Hot Sneaks</option>
        <option value="humanity" <?php if (!(strcmp("humanity", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Orange Humanity</option>
        <option value="le-frog" <?php if (!(strcmp("le-frog", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Green Le frog</option>
        <option value="mint-choc" <?php if (!(strcmp("mint-choc", $row_theme['value']))) {echo "selected=\"selected\"";} ?>> Mint Chocolate</option>
        <option value="overcast" <?php if (!(strcmp("overcast", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Grey Overcast</option>
        <option value="pepper-grinder" <?php if (!(strcmp("pepper-grinder", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Papper Grinder</option>
        <option value="redmond" <?php if (!(strcmp("redmond", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Light Blue Redmond</option>
        <option value="south-street" <?php if (!(strcmp("south-street", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Green South Street</option>
        <option value="sunny" <?php if (!(strcmp("sunny", $row_theme['value']))) {echo "selected=\"selected\"";} ?>> Light Orange Sunny</option>
        <option value="swanky-purse" <?php if (!(strcmp("swanky-purse", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Swanky purse</option>
        <option value="trontastic" <?php if (!(strcmp("trontastic", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Light Green Trontastic</option>
        <option value="vader" <?php if (!(strcmp("vader", $row_theme['value']))) {echo "selected=\"selected\"";} ?>>Gray vader</option>
      </select></td>
    </tr>
    <tr valign="baseline">
      <td nowrap="nowrap" align="left">&nbsp;</td>
      <td>
		<input name='update' type='submit' value='UPDATE' id='submit'/>
		</td>
    </tr>
  </table>
  <input type="hidden" name="record_status" value="active" />
</form>


<?php include"includes/table_settings.php"?>                
  <table cellpadding="0" cellspacing="0" border="0" id="dataTable">
                <thead>
                  <tr>
                    <th>Id</th>
                    <th>UserName</th>
                    <th>Names</th>
                    <th>Role</th>
                    <th>Branch</th>
                    <th>Email</th>
                    <th>Phone</th>
                    <th></th>
                    <th></th>
                  </tr>
                </thead>
                <tbody>
                  <!--Loop start, you could use a repeat region here-->
    <!--Loop start, you could use a repeat region here-->
    <tr>
    <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
                  <!--Loop end-->
                </tbody>
              </table>

<?php
mysql_free_result($theme);
?>
</div>
